package com.yxw.springcloud.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yxw.springcloud.model.Account;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yanxw
 * @since 2021-05-10
 */
public interface AccountService extends IService<Account> {


    /**
     * 扣减账户余额
     */
    void decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);

}
